import 'package:Smart/utils/screen_unit/gs_screen_util.dart';
import 'package:flutter/material.dart';

import 'gs_confirm_cancel_widget.dart';
import 'gs_countdown_vc_widget.dart';
//弹窗布局
class GsPopupWindow extends StatelessWidget {
  var _titleTxt = new TextEditingController();
  @override
  Widget build(BuildContext context) {

    return Container(
        height: 400.h,
        decoration: BoxDecoration(
            color: Colors.white,
            //设置顶部圆角
            borderRadius: BorderRadius.only(
              topLeft: const Radius.circular(25.0),
              topRight: const Radius.circular(25.0),
            )
        ),
        child: Column(
          children: [
            topText(),
            secondText(),
            GsCountdownVCWidget(),
            Divider(height: 1.0,indent: 49,color: Color(0xff969da3),endIndent:49),
            GsConfirmCancelWidget()
          ],
        )

    );
  }
  //弹窗顶部文本
  Widget topText(){
    return Container(
      padding: EdgeInsets.only(top:36.h),
      child: Center(
        child: Text('蓝牙钥匙激活',
          style: TextStyle(
              fontSize: 28.sp
          ),
        )
      ),
    );
  }

  Widget secondText(){
    return Padding(
        padding:EdgeInsets.fromLTRB(49.w,36.h,49.w,0),
        child: TextField(
            controller: _titleTxt,
          strutStyle: StrutStyle(
            fontSize: 14.sp
          ),
          decoration: InputDecoration(
              hintText: ('请输入手机号码'),
              hintStyle: TextStyle(
                  fontSize: 16.sp
              )
          ),
        )
    );
  }

}
